<?php
namespace app\api\model;

use think\Model;

class Type extends Model
{
  public function getImgAttr($value) {
    $prefix = config('setting.img_prefix');
    return ($prefix.$value);
  }
}